package com.slipper.bpmn.model;

import java.util.ArrayList;
import java.util.List;

public class Common {
    private String code;
    private String name;
    private String type;
    private Integer ordinal;
    private List<String> inLine = new ArrayList<>();
    private List<String> outLine = new ArrayList<>();

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getOrdinal() {
        return ordinal;
    }

    public void setOrdinal(Integer ordinal) {
        this.ordinal = ordinal;
    }

    public List<String> getInLine() {
        return inLine;
    }

    public void setInLine(List<String> inLine) {
        this.inLine = inLine;
    }

    public List<String> getOutLine() {
        return outLine;
    }

    public void setOutLine(List<String> outLine) {
        this.outLine = outLine;
    }
    
    public void addInLine(String inLine) {
        this.inLine.add(inLine);
    }
    
    public void addOutLine(String outLine) {
        this.outLine.add(outLine);
    }

    @Override
    public String toString() {
        return "Common{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", ordinal=" + ordinal +
                ", inLine=" + inLine +
                ", outLine=" + outLine +
                '}';
    }
}
